/**
  Bundles用户node端, AsyncBundles用于浏览器端
  webpack中使用了插件, 如果是检查到是浏览器端, 会将Bundles自动替换成AsyncBundles
 */
// import { ExceptionPage } from 'seid';

const routes = [
  {
    component: '../src/components/login',
    path: '/login',
    exact: true,
    title: '登录',
  },
  {
    component: '../src/components/homePage',
    path: '/homePage',
    exact: true,
    title: '主页',
  },
  {
    component: '../src/components/main/layout/MainLayout',
    path: '/index',
    exact: true,
    title: '布局页面',
  },  {
    component: '../src/components/userSetting',
    path: '/userSetting',
    exact: true,
    title: '个人设置',
  },  {
    component: '../src/components/baf/AppModule/AppModuleTable',
    path: '/AppModuleTable',
    exact: true,
    title: '应用模块',
  },  {
    component: '../src/components/baf/Feature/FeatureView',
    path: '/FeatureView',
    exact: true,
    title: '功能项',
  },  {
    component: '../src/components/baf/Menu/MenuView',
    path: '/MenuView',
    exact: true,
    title: '菜单',
  }, {
    component: '../src/components/baf/AuthorizeEntityType/AuthorizeEntityTypeTable',
    path: '/AuthorizeEntityTypeTable',
    exact: true,
    title: '权限实体类型',
  },  {
    component: '../src/components/baf/DataAuthorizeType/DataAuthorizeTypeTable',
    path: '/DataAuthorizeTypeTable',
    exact: true,
    title: '数据权限类型',
  },  {
    component: '../src/components/baf/dataDictionary',
    path: '/DataDictionary',
    exact: true,
  },  {
    component: '../src/configs/IndexView',
    path: '/home',
    exact: true,
  },  {
    component: '../src/commons/components/Demo',
    path: '/Demo',
    exact: true,
    title: '示例',
  },  {
    component: '../src/components/baf/Corporation/CorporationTable',
    path: '/CorporationTable',
    exact: true,
    title: '预算公司',
  }, {
    component: '../src/components/baf/Organization/OrganizationView',
    path: '/OrganizationView',
    exact: true,
    title: '组织机构',
  }, {
    component: '../src/components/baf/PositionCategoryManagement/PositionCategoryTable',
    path: '/PositionCategoryTable',
    exact: true,
    title: '岗位类别',
  }, {
    component: '../src/components/baf/Position/PositionView',
    path: '/PositionView',
    exact: true,
    title: '岗位',
  }, {
    component: '../src/components/baf/Country/CountryTable',
    path: '/CountryTable',
    exact: true,
    title: '国家',
  }, {
    component: '../src/components/baf/Region/RegionView',
    path: '/RegionView',
    exact: true,
    title: '行政区域',
  }, {
    component: '../src/components/baf/ProfessionalDomain/ProfessionalDomainView',
    path: '/ProfessionalDomainView',
    exact: true,
  }, {
    component: '../src/components/baf/Tenant/TenantTable',
    path: '/TenantTable',
    exact: true,
    title: '租户管理',
  }, {
    component: '../src/components/baf/FeatureRole/FeatureRoleView',
    path: '/FeatureRoleView',
    exact: true,
    title: '功能项角色',
  }, {
    component: '../src/components/baf/DataRole/DataRoleManagerView',
    path: '/DataRoleManagerView',
    exact: true,
    title: '数据角色管理',
  }, {
    component: '../src/components/baf/DataAuthorization/DataAuthorizationView',
    path: '/DataAuthorizationView',
    exact: true,
    title: '数据权限管理',
  }, {
    component: '../src/components/baf/EnterpriseUser/EnterpriseUserView',
    path: '/EnterpriseUserView',
    exact: true,
    title: '企业用户管理',
  }, {
    component: '../src/components/baf/SupplierUser/SupplierUserTable',
    path: '/SupplierUserTable',
    exact: true,
    title: '供应商管理',
  }, {
    component: '../src/components/baf/ExpertUser/ExpertUserTable',
    path: '/ExpertUserTable',
    exact: true,
  }, {
    component: '../src/components/main/layout/Test',
    path: '/Test',
    exact: true,
  }, {
    component: '../src/components/noAuthorized',
    path: '/noAuthorized',
    exact: true,
  },
  {
    component: '../src/components/login',
    path: '*',
  }
];

module.exports = routes;
